{template 'common/header'}
<link rel="stylesheet" type="text/css" href="../addons/yzzc_sun_plugin_distribution/template/style/style.css">
<style type="text/css">
	.table-responsive{border: 1px solid #e7e7eb;}
	.table-responsive th{background-color: #f4f6f9;border-right: 1px solid #e7e7eb}
	.table-responsive td{border-right: 1px solid #e7e7eb}
	.table-responsive .btn-primary{border:0; padding: 3px 8px; margin-bottom: 3px;}
</style>
<!--<ul class="we7-page-tab">-->
<!--	<li class="{if $ordertype==1}active{/if}"><a href="{php echo $this->createWeburl('distribution_order', array('ordertype'=>1));}">短租</a></li>-->
<!--	<li class="{if $ordertype==2}active{/if}"><a href="{php echo $this->createWeburl('distribution_order', array('ordertype'=>2));}">长租</a></li> -->
<!--</ul>-->
<div class="clearfix" style="margin-left: -20px;margin-right: -20px;">
	<table class="table table-responsive">
		{if $ordertype==6}
			<tr>
				<th>激活码（线上购买）</th>
				<th>会员信息</th>
				<th>金额</th>
				<th>vip名称</th>
				<th>分销情况</th>
			</tr>
			{loop $list $index $val}
				<tr>
					<td>
						{$val['vc_code']}
					</td>
					<td>
						<img src="{$val['img']}" height="30"><br>
						微信昵称：{$val['name']}<br>
					</td>
					<td>
						{$val['money']}元
					</td>
					<td>
						{$val['viptitle']}
					</td>
					<td>
						一级佣金：{$val["first_price"]}元
						{if $d_set["status"]>=2}<br>二级佣金：{$val['second_price']}元{/if}
						{if $d_set["status"]>=3}<br>三级佣金：{$val['third_price']}元{/if}
					</td>
				</tr>
			{/loop}
		{else}
			<tr>
				<th>订单号</th>
				<th>商品信息</th>
				<th>订单金额/续租费用</th>
				<th>订单状态</th>
				<th>分销情况</th>
			</tr>
			{loop $list $index $val}
				<tr>
					<td>
						{$val['orderformid']}
					</td>
					<td>
						<!--<img src="{$_W['attachurl']}{$val['goodsimg']}" height="30"><br>-->
						车辆名称：{$val['car_name']}<br>
						车牌号：{$val['carnum']}<br>
						{if $val["is_inner"]==1}
						车辆来源：自有车辆<br>
						{else}
						车辆来源：外调车辆<br>
						{/if}
						{if $val["source_type"]==1}
						订单来源：客户下单<br>
						{else}
						订单来源：预订下单<br>
						{/if}
						天数：{$val['good_total_num']}
					</td>
					<td>
						{$val['prepay_money']}/{$val['xzmoney']}元
					</td>
					<td>
						{$status[$val['order_status']]}
					</td>
					<td>
						一级佣金：{$val["first_price"]}元
						{if $d_set["status"]>=2}<br>二级佣金：{$val['second_price']}元{/if}
						{if $d_set["status"]>=3}<br>三级佣金：{$val['third_price']}元{/if}
					</td>
				</tr>
			{/loop}
		{/if}
	</table>

	<div id="fenye">

	{$pager}

	</div>
</div>
{template 'common/footer'}